import Vue from "vue";
import Router from 'vue-router';
import Home from "@/components/Home.vue";

Vue.use(Router)

export default new Router({
    // 移除url中的#号
    mode:'history', 
    routes: [
        // 路由列表
        {
            name:'name',
            path:'/',
            component:Home
        },
        {
            name:'name',
            path:'/home',
            component:Home
        },
    ]
})